import LP from 'LP';
import <%= fetchName %> from '../fetch/<%= fetchName %>';

export default class <%= name %> {
  <%= funcName %>() {
    const condition = {
      workBarId: '<%= name %>',
      infbdy: {
        <%= name %>X1: [],
      }
    };
    return new <%= fetchName %>(condition)
      .send()
      .catch(({ ERRMSG }) => {
        throw LP.error('FSND001', ERRMSG);
      })
      .then(({ <%= name %>Z1 = [] }) => <%= name %>Z1);
  }
}